<?php

namespace app\index\validate;

use think\Validate;

class Mutual extends Validate
{
    protected $rule = [
        "rname"      => "require|chs",
        "sex"=> "require",
        "idcard"=> "require|idCard",
        "money"=> "require|gt:0",
        "info_img"=> "require",
        "hospital_in_img"=> "require",
        "proof_img"=> "require",
        "health_img"=> "require",
        "hospital_to_img"=> "require",
    ];

    protected $message = [
        'rname.require'      => '请填写真实姓名',
        'rname.chs'      => '请填写正确的姓名',
        'sex.require'      => '请选择性别',
        'idcard.require'      => '请填写身份证号码',
        'idcard.idCard'      => '请填写有效的身份证号码',
        'money.require'      => '请填写众筹金额',
        'money.gt'      => '众筹金额错误',
        'info_img.require'      => '请上传户口本人信息页',
        'hospital_in_img.require'      => '请上传入院证明',
        'proof_img.require'      => '请上传诊断证明',
        'health_img.require'      => '请上传医保报销证明',
        'hospital_to_img.require'      => '请上传出院证明',
    ];

}